using System;
using System.Collections.Generic;
using System.Text;

namespace Decav.Gatsb
{
    /// <summary>
    /// The search criteria when searching for a <see cref="User"/>.
    /// </summary>
    [Serializable]
    public class PersonSearchCriteria
    {
        public PersonSearchCriteria(string searchString)
        {
            if (searchString == null)
                throw new ArgumentNullException("searchString");

            _searchString = searchString;
        }

        private string _searchString;

        /// <summary>
        /// Gets the string the user searched for.
        /// </summary>
        public string SearchString
        {
            get
            {
                return _searchString;
            }
        }
    }
}
